package com.leo.service;


import com.leo.pojo.Employee;
import org.springframework.stereotype.Service;

import java.util.Collection;

@Service
public interface EmployeeService {



    /**
     * 新增员工
     * @param employee
     */
    public void save(Employee employee);

    //通过id查询员工
    public Employee getEmployeeById(Integer id);

    //通过id删除员工
    public void delete(Integer id);

    //查询所有员工信息
    public Collection<Employee> getAll();

    //修改员工信息
    public void update(Employee employee);


}
